package com.yaorange.service;

import com.github.pagehelper.PageInfo;
import com.yaorange.entity.Apply;


import java.util.List;

/**
 * @description:
 * @company: yaorange
 * @author: CorJ
 * @version: 1.0
 * @create: 2021-12-01 14:52
 */
public interface ApplyService {
    PageInfo<Apply> getPageLst(Integer pageNum, Integer pageSize, String articleName,String applyDate,String applyName);

    boolean updateById(Integer applyId, Integer stateId,Integer articleId,Integer applyNum);

    boolean updateMoreById(List<Integer> ids, Integer stateId);

    boolean addApply(Apply apply,Integer id);

    List<Apply> getStateList(Integer id);

    PageInfo<Apply> getList(Integer pageNum, Integer pageSize, Integer stateId, String applyDate, Integer userId);

    boolean update(Integer applyId, Integer applyNum,Integer articleId);

    Apply getApply(Integer aId);

    boolean updateSub(Integer applyId, Integer applyNum, Integer articleId);


    boolean updateApply(Integer applyId, String applyReason, String applyDate, Integer applyNum);
}
